using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.VisualStudio.Package.Automation;
using Microsoft.VisualStudio.Package;

namespace NBusiness.VisualStudio.Automation
{
    public class OAESharpProjectProperties : OAProperties
    {
        #region Constructors
        /// <summary>
        /// Initializes new instance of OANestedProjectProperties object based on specified ProjectNode.
        /// </summary>
        /// <param name="project">The Project Node.</param>
        internal OAESharpProjectProperties(NodeProperties nodeProperties)
            : base(nodeProperties)
        {
            this.AddProperties();
        }
        #endregion

        #region Methods
        /// <summary>
        /// Initialize properties by names, which defined in property page tag.
        /// </summary>
        private void AddProperties()
        {
            foreach (string tag in Enum.GetNames(typeof(ESharpPropertyPageTag)))
            {
                this.Properties.Add(tag, new OAESharpProjectProperty(this, tag));
            }
        }
        #endregion Methods
    }
}
